<script>
import axios from "axios";
export default {
  name: "Detail",
  data(){
    return {
      info:{}
    }
  },
  mounted(){
    // https://api.github.com/users/VUE
    axios.get("https://api.github.com/users/"+this.$route.params.login).then(value=>{
      console.log(value.data);
      this.info = value.data;
    })
  }
}
</script>

<template>
  <div>
    <h3>{{info.login}}</h3>
    <img :src="info.avatar_url" alt="">
  </div>
</template>

<style scoped>

</style>